﻿// *********************************************************************
// * Copyright © 2013 Scanvaegt Nordic A/S
// *
// * This file is the property of Scanvaegt Nordic A/S and may not be 
// * distributed without the written consent of the author.    
// ********************************************************************

namespace SqlPad.Library.Interfaces
{
    public interface IQueryHandler<T> where T: new()
    {
        string ConnectionString { get; set; }

        IQueryResult<T> Run(string connectionString, string query);
        IQueryResult<T> Run(string query);

        IQueryResult<T> Result();
    }
}
